package operator;

public class OperatorDemo1
{
    public static void main(String[] args)
    {
        System.out.println(isMatch(180,65,'女'));
        System.out.println(isMatch(180,65,'男'));
        System.out.println(isMatch2(185,200000));
        System.out.println(isMatch2(160,2000000));
    }


    public static boolean isMatch(int height,int weight,char sex)
    {
        boolean result = height>170 && weight>60 && weight<70 && sex=='女';
        return result;

    }

    //需求：找一个男朋友，要求要么身高大于180，要么收入超过30万。
    public static boolean isMatch2(int height,int income)
    {
        boolean result = height>=180 || income>300000;
        return result;
    }



}
